package net.sesami.nhg.ebd.batch.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateTimeUtils {
	public String getCurrentTimeInYYYYMMDDMMSS() {
		Date date = Calendar.getInstance().getTime();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");

		return sdf.format(date);
	}

	public static void main(String args[]) {
		DateTimeUtils d = new DateTimeUtils();
		System.out.println(d.getCurrentTimeInYYYYMMDDMMSS());
	}
}
